import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HomeComponent } from './home/home.component';
import { UserManagerComponent } from './user-manager/user-manager.component';
import { HouseManagerComponent } from './house-manager/house-manager.component';
import { JobsManagerComponent } from './jobs-manager/jobs-manager.component';
import { MessageComponent } from './message/message.component';
import {RoleComponentComponent} from './role-component/role-component.component';
import {LogComponent} from './log/log.component';
import {MenuComponent} from './menu/menu.component';

import {ImgComponent} from './img/img.component';

const routes: Routes = [
  { path: '', component: HomeComponent },
  { path: 'userMgr', component: UserManagerComponent },
  { path: 'jobMgr', component: JobsManagerComponent },
  { path: 'messageMgr', component: MessageComponent },
  { path: 'roleMgr', component: RoleComponentComponent },
  { path: 'logMgr', component: LogComponent },
  { path: 'menuMgr', component: MenuComponent },
  { path: 'imgMgr', component: ImgComponent },
  { path: 'houseMgr', component: HouseManagerComponent }]


@NgModule({
  exports: [RouterModule],
  imports: [RouterModule.forRoot(routes)]
})
export class AppRoutingModule { }

